package cn.itsource.pethome.product.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.itsource.pethome.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class Product extends BaseDomain {
    /**
    * 服务名称
    */
    private String name;

    /**
    * 存放fastdfs地址，多个资源使用，分割
    */
    private String resources;

    private BigDecimal saleprice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date offsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onsaletime;

    /**
    * 状态：0下架 1上架
    */
    private Integer state=0;

    private BigDecimal costprice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime = new Date();

    private Long salecount=0L;

    /**
     * 关联t_product_detail表，服务详情
     */
    private ProductDetail productDetail;

}